package test9;

public class CEmployee extends CPerson {
    private String departmetn;//部门

    public String getDepartmetn() {
        return departmetn;
    }

    public double getSalary() {
        return salary;
    }

    private double salary;//薪水
    public CEmployee(String name, int id, String sex, int age,String departmetn,double salary) {
        super(name, id, sex, age);
        this.departmetn = departmetn;
        this.salary = salary;
    }
    public void override(){
        System.out.println(super.toString()+"员工部门为:"+departmetn+", 员工薪水为"+salary);
    }
}
